using System;
using System.Collections.Generic;
using System.Text;

namespace AAM.BIZ
{
    [Serializable]
    public class ObjectType
    {

        private string name;

        public ObjectType(string name)
        {
            this.name = name;
        }

        public string Name { get { return name; } }

        public override string ToString()
        {
            return name;
        }

        public override int GetHashCode()
        {
            return name.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if (!(obj is ObjectType)) return false;
            ObjectType other = (ObjectType)obj;
            return name.Equals(other.name);
        }

    }
}
